package com.hopu.pyq.service;

import com.hopu.pyq.entity.Zan;
import org.apache.ibatis.annotations.Param;

public interface ZanService {

    /**
     * 通过用户id和朋友圈id查询点赞记录
     * @param userId
     * @param pyqId
     * @return
     */
    Zan findZanByUserIdAndPyqId(@Param("userId") Integer userId, @Param("pyqId") Integer pyqId);

    /**
     * 添加点赞
     * @param zan
     */
    void addZan(Zan zan);
}
